#ifndef __RTC_H_
#define __RTC_H_

#include <rtthread.h>
#include <rtdevice.h>


typedef struct
{
    uint16_t Year;
    uint8_t Month;
    uint8_t Day;
    uint8_t Hour;
    uint8_t Minute;
    uint8_t Second;
}ST_RTC_DATA;




/**************************************************************************************************
*                              Functions declaration                                              *
**************************************************************************************************/
int rtc_config(void);
time_t RTC_Mktime(void);
void RTC_Get_BjTimeInfo(ST_RTC_DATA *str_TimeBeijing);
void getCP56Time2a(char *out);
void RTC_MkLocalTime(unsigned int uiSeconds);
void TimingFromCP56Time(char *CP56Time);
void getBJtime(char *bjTimeBcd);
void TimingFromBJtime(char *BJ_timeBCD);
#endif




